package cn.u313.lymusic.model;

import java.util.ArrayList;
import java.util.List;

public class  SearchModel {

        private String msg;
        private int code;
        private String token;
        private long time;
        private String user;
        private List<Data> data = new ArrayList<>();
        private int total;
        public void setMsg(String msg) {
            this.msg = msg;
        }
        public String getMsg() {
            return msg;
        }

        public void setCode(int code) {
            this.code = code;
        }
        public int getCode() {
            return code;
        }

        public void setToken(String token) {
            this.token = token;
        }
        public String getToken() {
            return token;
        }

        public void setTime(long time) {
            this.time = time;
        }
        public long getTime() {
            return time;
        }

        public void setUser(String user) {
            this.user = user;
        }
        public String getUser() {
            return user;
        }

        public void setData(List<Data> data) {
            this.data = data;
        }
        public List<Data> getData() {
            return data;
        }

        public void setTotal(int total) {
            this.total = total;
        }
        public int getTotal() {
            return total;
        }


    public static class Data {

        private String song;
        private String singger;
        private String pic;
        private long size128;
        private long size320;
        private long sizeape;
        private long sizeflac;
        private int lyric_Id;
        private String key;
        private String album;
        private boolean play;
        private String title;
        public void setSong(String song) {
            this.song = song;
        }
        public String getSong() {
            return song;
        }

        public void setSingger(String singger) {
            this.singger = singger;
        }
        public String getSingger() {
            return singger;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }
        public String getPic() {
            return pic;
        }

        public void setSize128(long size128) {
            this.size128 = size128;
        }
        public long getSize128() {
            return size128;
        }

        public void setSize320(long size320) {
            this.size320 = size320;
        }
        public long getSize320() {
            return size320;
        }

        public void setSizeape(int sizeape) {
            this.sizeape = sizeape;
        }
        public long getSizeape() {
            return sizeape;
        }

        public void setSizeflac(long sizeflac) {
            this.sizeflac = sizeflac;
        }
        public long getSizeflac() {
            return sizeflac;
        }

        public void setLyric_Id(int lyric_Id) {
            this.lyric_Id = lyric_Id;
        }
        public int getLyric_Id() {
            return lyric_Id;
        }

        public void setKey(String key) {
            this.key = key;
        }
        public String getKey() {
            return key;
        }

        public void setAlbum(String album) {
            this.album = album;
        }
        public String getAlbum() {
            return album;
        }

        public void setPlay(boolean play) {
            this.play = play;
        }
        public boolean getPlay() {
            return play;
        }

        public void setTitle(String title) {
            this.title = title;
        }
        public String getTitle() {
            return title;
        }
        public String fileName(){
            return song+"-"+singger;
        }
    }
}
